"""
Chrome / Firefox / Safari / Edge / Opera
"""
from selenium import webdriver

import bs4

driver = webdriver.Chrome()
driver.get('https://image.so.com/z?ch=beauty')
# page_source是带动态内容的页面源代码
soup = bs4.BeautifulSoup(driver.page_source, 'html.parser')
imgs = soup.select('img')
for img in imgs:
    print(img.attrs['src'])
driver.close()
